// 搜索组件类型
export interface BusinessOption {
  name: string
}

export interface NodeBusinessData {
  id: string
  category: string
  // 其他业务属性...
}

export interface NodeUIData {
  id: string
  x: number
  y: number
  category: string
  size?: number
  color?: string
  icon?: string
  label?: string
}

export interface TopologyData {
  categories: string[]
  nodeBusinessData: NodeBusinessData[]
  nodeUIData: NodeUIData[]
}

export interface SaveResult {
  graphData: {
    nodes: NodeUIData[]
    edges: any[]
  }
  updatedBusinessData: NodeBusinessData[]
}

export interface NodeBusinessInfo {
  ip: string
  category: string
  total: number
  label: string
}
